package com.aidex.biz.service;

import com.aidex.biz.domain.Order;
import com.aidex.common.core.service.BaseService;
import com.aidex.biz.domain.BillInfoDetails;

/**
 * 对账详情Service接口
 * @author sean
 * @email 2074844820@qq.com
 * @date 2023-09-27
 */
public interface BillInfoDetailsService extends BaseService<BillInfoDetails>
{

    /**
     * 批量删除对账详情
     * @param ids 需要删除的对账详情ID集合
     * @return 结果
     */
    public int deleteBillInfoDetailsByIds(String[] ids);

    /**
    * 获取最大编号
    * @param billInfoDetails 对账详情
    * @return 结果
    */
    public int findMaxSort(BillInfoDetails billInfoDetails);


    /**
     * 添加完成的订单作为账单明细
     */
    public Boolean orderToBillInfoDetails(Order order);




    /**
     * 统计每个公司的日账单
     * @param billInfoDetails
     * @return
     */
    public BillInfoDetails sumToDayBillDetails(BillInfoDetails billInfoDetails);

    /**
     * 修改已经统计的账单
     * @param billInfoDetails
     * @return
     */
    public Integer updateSumToDayBillDetails(BillInfoDetails billInfoDetails);

    /**
     * 查询当日统计
     * @param billInfoDetails
     * @return
     */
    public BillInfoDetails findDay(BillInfoDetails billInfoDetails);



}
